package game.engine.base.anim.single

import game.engine.base.anim.Tween

class Delay(val t: Float) : Tween() {
    var elapseTime = 0f

    override fun execute(dt: Float) {
        elapseTime += dt
        if (elapseTime >= t) {
            end = true
        }
    }

    override fun clone(): Tween {
        return Delay(t)
    }
}

